From a753a00e3ce15da47053cf206e3f69d4633bd245 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 14 Nov 2003 10:59:32 +0000 Subject: [PATCH] (eshell-lisp-command): Do not late-convert string arguments to numbers unless the whole argument was seen as a number. --- lisp/eshell/esh-cmd.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 54f4d6c7739..e944020b1ed 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el @@ -1400,7 +1400,8 @@ messages, and errors." (let ((arg (car args))) (if (and (stringp arg) (> (length arg) 0) - (get-text-property 0 'number arg)) + (not (text-property-not-all + 0 (length arg) 'number t arg))) (setcar args (string-to-number arg)))) (setq args (cdr args)))) (eshell-apply object eshell-last-arguments)) -- 2.30.2